<div class="post">
    <h2 class="title">Clients</h2>
    <div class="entry">

        <input type="button" value="Add new" onclick="show('#new_client')"/>
        <div id="client_result" style="display: none" >
        </div>


        <!--a href="" id="hide3" >Hide</a> <a href="" id="show3" >Show</a-->
        <div id="new_client" style="display: none;margin-bottom: 10px;">
            <?php $data['id'] = "client_form" ?>
            <?= form_open_multipart('admin_settings/saveClient', $data); ?>
            <table>
                <tr class="darker"><td class="half">Client name</td><td><input type="text" class="wide" name="name" value="<?php echo set_value('name'); ?>"  /></td> </tr>
                <tr class="darker"><td class="half">Link</td><td><input type="text" class="wide" name="link" value="<?php echo set_value('link'); ?>"  /></td> </tr>
                <tr class="lighter"><td class="half">VAT Compliant</td><td>
                        <select name="vat_comp">
                            <?php foreach ($yeses as $type): ?>
                                <option value="<?= $type->tid; ?>"> <?= $type->name; ?></option>
                            <?php endforeach; ?></select>
                        </td> </tr>
                <tr class="darker"><td class="half">List of directors</td><td><textarea class="wide" name="list_of_dire"><?php echo set_value('name'); ?></textarea></td> </tr>

                    <tr><td colspan="2" style="text-align: right">
                            <input type="submit" value="Submit" />
                            <input type="button" value="Cancel" onclick="hide('#new_client')"/>
                        </td></tr>
                </table>
                </form>
            </div>
            <div id="all_client">
            <?= $tablet ?>
            <?= $pagina ?>
        </div>

    </div>
</div>